h1 Listing sales_invoices

table
  thead
    tr
      th Firm
      th Order
      th Finance info
      th Created by
      th Invoice money
      th Invoice type
      th Invoice num
      th Invoice date
      th Notes
      th
      th
      th

  tbody
    - @sales_invoices.each do |sales_invoice|
      tr
        td = sales_invoice.firm_id
        td = sales_invoice.order_id
        td = sales_invoice.finance_info_id
        td = sales_invoice.created_by
        td = sales_invoice.invoice_money
        td = sales_invoice.invoice_type
        td = sales_invoice.invoice_num
        td = sales_invoice.invoice_date
        td = sales_invoice.notes
        td = link_to 'Show', sales_invoice
        td = link_to 'Edit', edit_sales_invoice_path(sales_invoice)
        td = link_to 'Destroy', sales_invoice, data: { confirm: 'Are you sure?' }, method: :delete

br

= link_to 'New Invoice', new_sales_invoice_path
